'use strict';

angular.module('User').config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $stateProvider
            .state('UserLogin', {
                url: '/User/Login',
                templateUrl: 'modules/User/client/views/login.client.view.html',
                controller: 'LoginController'
            })
            .state('index.upload', {
                url: '/User/Upload',
                templateUrl: 'modules/User/client/views/upload.client.view.html',
                controller: 'UploadController',
                access: {
                    name: '头像设置',
                    notRequiredRoles: true,
                    requiredAuthentication: true
                }
            })
            .state('ResetPassword', {
                url: '/User/ResetPassword',
                templateUrl: 'modules/User/client/views/resetpassword.client.view.html',
                controller: 'ResetPasswordController'
            })
            .state('index.ChangePassword', {
                url: '/User/ChangePassword',
                templateUrl: 'modules/User/client/views/changepassword.client.view.html',
                controller: 'ChangePasswordController',
                access: {
                    name: '修改密码',
                    notRequiredRoles: true,
                    requiredAuthentication: true
                }
            });
    }
]);
